package org.example.exp2.exam3;

import org.example.exp2.utils.XMLUtil;

public class Client {
    public static void main(String[] args) {
        String encryptorType = XMLUtil.getResultByName("src/test/java/org/example/exp2/exam3/config.xml", "EncryptorType");
        Encryptor encryptor = EncryptorFactory.getEncryptor(encryptorType);
        System.out.println(encryptor.doEncrypt("郑乾坤"));
    }
}